package service.impl;

import dao.WarehouseDao;
import entity.Warehouse;
import org.springframework.stereotype.Service;
import service.WarehouseService;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service("warehouseService")
public class Warehouseimpl implements WarehouseService {
    @Resource(name="warehouseDao")
    private WarehouseDao warehouseDao;

    @Override
    public List<Warehouse> list() {
        return warehouseDao.list();
    }

    @Override
    public List<Warehouse> Qlist(Map<String, Object> map) {
        return warehouseDao.Qlist(map);
    }

    @Override
    public int Qadd(Warehouse warehouse) {
        return warehouseDao.Qadd(warehouse);
    }

    @Override
    public int Qupd(Warehouse warehouse) {
        return warehouseDao.Qupd(warehouse);
    }

    @Override
    public int Qdel(Warehouse warehouse) {
        return warehouseDao.Qdel(warehouse);
    }
}
